FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest

LABEL \
        org.opencontainers.image.title="redis_keentune" \
        org.opencontainers.image.version="latest" \
        maintainer="OpenAnolis KeenTune SIG"

COPY init_redis.sh init_redis.sh
COPY redis_keentune.sh redis_keentune.sh

RUN yum install systemd procps-ng redis polkit ethtool irqbalance pciutils numactl python36 git keentuned keentune-target -y
RUN pip3 install pyudev requests -i https://pypi.tuna.tsinghua.edu.cn/simple
